import apiRouter from './api';
import publicRouter from './public';

const router = require('koa-router')({
    prefix: '/taskMan/v1'
})
module.exports = (app) => {
    router.use('/api', apiRouter.routes());
    router.use('/public', publicRouter.routes())

    app.use(router.routes())
        .use(router.allowedMethods())
}
